package com.scoring.system.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.scoring.system.mapper.TermMapper;
import com.scoring.system.pojo.Term;
import com.scoring.system.service.TermSerivce;
@Service("termService")
public class TermServiceImpl implements TermSerivce {
	
	@Resource
	private TermMapper termDao;

	@Override
	public int deleteTerm(int id) {
		return termDao.deleteByPrimaryKey(id);
	}

	@Override
	public int saveTerm(Term record) {
		return termDao.insert(record);
	}

	@Override
	public Term getTermById(int id) {
		return termDao.selectByPrimaryKey(id);
	}

	@Override
	public List<Term> listTerm() {
		return termDao.listTerm();
	}

	@Override
	public int updateTerm(Term record) {
		return termDao.updateByPrimaryKeySelective(record);
	}

}
